Class symantec.itools.db.beans.brl.binding.ComputedColumnDataController
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.brl.binding.ComputedColumnDataController

Object
   |
   +----symantec.itools.db.beans.brl.binding.ComputedColumnDataController

public class ComputedColumnDataController
extends Object
implements DataBusMember, DataBusEventListener, DataItemChangedListener
Support Class which acts as a controller between dataItems that are dependent on each other.

Version:
1.0 08/14/98
Author:
Puru Balakrishnan

Variable Index

 o calculationMode
 o dataBindingSupport
 o dataBus
 o dataSizeChangeCalled
 o hashInit
 o hashdataItems
 o hashdataValues
 o producerDIs
 o vetoSupport

Constructor Index

 o symantec.itools.db.beans.brl.binding.ComputedColumnDataController()
Constructor

Method Index

 o addDataBindingsChangeEventListener(DataBindingsChangeEventListener)
Method to register as a DataBindingsChangeEventListener
 o addProducerDataItem(String)
Method to add a dataItem as a producer
 o addVetoableChangeListener(VetoableChangeListener)
Method to add a VetoableChangeListener to the list
 o findDataItem(String)
 o getCalculationMode()
Get the mode
 o getDataBus()
Method to return the data bus
 o getLookupBindName(Name)
 o handleDataBusEvent(DataBusEvent)
This method is called in order to inform an IB component of the coming or going of data items.
 o notifyDataItemChanged(DataItemChangedEvent)
Method which implements the data item change method
 o removeDataBindingsChangeEventListener(DataBindingsChangeEventListener)
Method to remove as a DataBindingsChangeEventListener
 o removeProducerDataItem(String)
Method to remove a dataItem as a producer
 o removeVetoableChangeListener(VetoableChangeListener)
Method to remove a VetoableChangeListener to the list
 o requestDataItem(DataBusEvent)
DataBusEventListeners are called by this method to see if they can fulfill a request for a data item.
 o setCalculationMode(int)
Method to set the calculation mode
 o setDataBus(DataBus)
Method to set the data bus

Variables

 o calculationMode
protected int calculationMode
 o dataBindingSupport
protected symantec.itools.db.beans.brl.binding.event.DataBindingsChangeEventSupport dataBindingSupport
 o dataBus
protected symantec.itools.db.beans.binding.databus.DataBus dataBus
 o dataSizeChangeCalled
protected boolean dataSizeChangeCalled
 o hashInit
protected java.util.Hashtable hashInit
 o hashdataItems
protected java.util.Hashtable hashdataItems
 o hashdataValues
protected java.util.Hashtable hashdataValues
 o producerDIs
protected java.util.Vector producerDIs
 o vetoSupport
protected java.beans.VetoableChangeSupport vetoSupport

Constructors

 o ComputedColumnDataController
public ComputedColumnDataController()
Constructor

Methods

 o addDataBindingsChangeEventListener
public void addDataBindingsChangeEventListener(DataBindingsChangeEventListener l)
Method to register as a DataBindingsChangeEventListener

Parameters:
l - DataBindingsChangeEventListener
 o addProducerDataItem
public synchronized void addProducerDataItem(String item)
Method to add a dataItem as a producer

Parameters:
item - dataitem name
 o addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
Method to add a VetoableChangeListener to the list

Parameters:
listener - VetoableChangeListener
 o findDataItem
protected symantec.itools.db.beans.binding.databus.DataItem findDataItem(String name)
 o getCalculationMode
public int getCalculationMode()
Get the mode

Returns:
int
 o getDataBus
public symantec.itools.db.beans.binding.databus.DataBus getDataBus()
Method to return the data bus

Returns:
DataBus
 o getLookupBindName
protected java.lang.String getLookupBindName(Name nameObj)
 o handleDataBusEvent
public void handleDataBusEvent(DataBusEvent e)
This method is called in order to inform an IB component of the coming or going of data items. The data item name is passed as a hint, and may be used in a subsequent requestDataItem() call. Note that it is possible (but unusual) that a subsequent call to requestDataItem() may fail even though the listener has "just" been informed of the new data item.

Parameters:
e - DataBusEvent
 o notifyDataItemChanged
public void notifyDataItemChanged(DataItemChangedEvent e)
Method which implements the data item change method

Parameters:
e - DataItemChangedEvent
 o removeDataBindingsChangeEventListener
public void removeDataBindingsChangeEventListener(DataBindingsChangeEventListener l)
Method to remove as a DataBindingsChangeEventListener

Parameters:
l - DataBindingsChangeEventListener
 o removeProducerDataItem
public synchronized void removeProducerDataItem(String item)
Method to remove a dataItem as a producer

Parameters:
item - dataitem name
 o removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
Method to remove a VetoableChangeListener to the list

Parameters:
listener - VetoableChangeListener
 o requestDataItem
public void requestDataItem(DataBusEvent e)
DataBusEventListeners are called by this method to see if they can fulfill a request for a data item. Note that solicitations for new data may arrive at any time. A source may respond to requests for data items which it did not announce (for example, a spreadsheet may respond to a request for item named "A1..B10", even though it may never have announced the availability of such an item). Components that are not acting in the role of data source may ignore these events by implementing an empty requestDataItem() method.

Parameters:
e - DataBusEvent
 o setCalculationMode
public void setCalculationMode(int mode)
Method to set the calculation mode

Parameters:
mode - calculation mode
 o setDataBus
public void setDataBus(DataBus b) throws PropertyVetoException
Method to set the data bus

Parameters:
b - DataBus
Throws: PropertyVetoException
property veto exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index